package com.zzty.train.dao;


import com.zzty.train.entity.Question;
import com.zzty.train.entity.TeamExam;
import com.zzty.train.util.PageUtils;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeamExamDao {
    @Select("select * from teamExam where classId=#{clazzId} and date=#{date}")
    TeamExam checkByDateAndClazzId(TeamExam teamExam);

    @Insert("insert into teamExam (questionId,classId,date) values (#{questionId},#{clazzId},#{date})")
    Integer insertTeamExam(TeamExam teamExam);

}
